﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPage.master" AutoEventWireup="true"
    CodeFile="BoardList.aspx.cs" Inherits="Manage_BoardList" Title="问题反馈" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" runat="Server">

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript">

        function SelectAll() {
            var i;
            var a = document.getElementsByName('chk');
            for (i = 0; i < a.length; i++) {
                a[i].checked = true;
            }
        }
        function CheckOthers() {
            var i;
            var a = document.getElementsByName('chk');

            for (i = 0; i < a.length; i++) {

                if (a[i].checked != true) {
                    a[i].checked = true;
                }
                else {
                    a[i].checked = false;
                }
            }

        }
    </script>

    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="4">
                <img src="../images/intro_left.gif" width="4" height="34">
            </td>
            <td class="intro_wordbg">
                问题反馈
            </td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34">
            </td>
        </tr>
    </table>
    <table id="tabData" class="list" cellpadding="1" cellspacing="1">
        <tr>
            <td class="td_left_20">
                提问人名称：
            </td>
            <td class="td_right_30">
                <asp:TextBox ID="txtDWName" runat="server" CssClass="txtbox_200"></asp:TextBox>
            </td>
            <td class="td_left_20">
                提问人编码：
            </td>
            <td class="td_right_30">
                <asp:TextBox ID="txtUserCode" runat="server" CssClass="txtbox_200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="td_left_20">
                标 题：
            </td>
            <td class="td_right_30">
                <asp:TextBox ID="txtTitle" runat="server" CssClass="txtbox_200"></asp:TextBox>
            </td>
            <td class="td_left_20">
                回答状态：
            </td>
            <td class="td_right_30">
                <asp:DropDownList ID="lstExplainState" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="td_center" colspan="4">
                <asp:Button ID="butSearch" runat="server" Text="查询" CssClass="button_80" OnClientClick="javascript:return CheckForm();" />
                <input id="Submit2" type="button" class="button_80" value="全选" onclick="javascript:SelectAll();" />
                <input id="Submit3" type="button" class="button_80" value="反选" onclick="javascript:CheckOthers();" />
                <input type="submit" name="btnSubmit" value="删除" class="button_80" onclick="javascript:return confirm('确定真的要删除吗？？？？ ');"
                    id="Submit4" />
            </td>
        </tr>
    </table>
    <asp:DataList ID="DlLaw" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
        <ItemStyle CssClass="table_td" />
        <AlternatingItemStyle CssClass="table_td2" />
        <HeaderTemplate>
            <table width="100%">
                <tr>
                    <td class="td_DataListHead" width="8%">
                        提问人
                    </td>
                    <td class="td_DataListHead" width="12%">
                        提问人名称
                    </td>
                    <td class="td_DataListHead" width="30%">
                        标题
                    </td>
                    <td class="td_DataListHead" width="12%">
                        提问日期
                    </td>
                    <td class="td_DataListHead" width="12%">
                        回复人名称
                    </td>
                    <td class="td_DataListHead" width="12%">
                        回复日期
                    </td>
                    <td class="td_DataListHead" width="8%">
                        查看回复
                    </td>
                    <td class="td_DataListHead" width="5%">
                        删除
                    </td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td width="8%" class="td_DataListContent_center">
                        <%# DataBinder.Eval(Container.DataItem, "accountname")%>
                    </td>
                    <td width="12%" class="td_DataListContent_left">
                        <%# DataBinder.Eval(Container.DataItem, "wname")%>
                    </td>
                    <td width="30%" class="td_DataListContent_left">
                        <%# DataBinder.Eval(Container.DataItem, "Title")%>
                    </td>
                    <td width="12%" class="td_DataListContent_center">
                        <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "CreateDate")).ToString("yyyy-MM-dd hh:mm:ss")%>
                    </td>
                    <td width="12%" class="td_DataListContent_left">
                        <%# DataBinder.Eval(Container.DataItem, "dname")%>
                    </td>
                    <td width="12%" class="td_DataListContent_center">
                        <%# DataBinder.Eval(Container.DataItem, "AnswerDate")%>
                    </td>
                    <td width="8%" class="td_DataListContent_left">
                        <a target="_blank" href='BoardEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                            回复 </a>
                    </td>
                    <td width="5%" class="td_DataListContent_center">
                        <input name="chk" type="checkbox" value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
</asp:Content>
